Skip to content

Removed RemoveMarkupOrThrow in ChatSystem to allow invalid markdown from being set as chat messages - #1336

Open
QuillTheCreature wants to merge 1 commit into
ProjectOmu:masterfrom
QuillTheCreature:ui/chat/invalidmarkdownfix
Open

Removed RemoveMarkupOrThrow in ChatSystem to allow invalid markdown from being set as chat messages#1336
QuillTheCreature wants to merge 1 commit into
ProjectOmu:masterfrom
QuillTheCreature:ui/chat/invalidmarkdownfix

Conversation

@QuillTheCreature

Copy link
Copy Markdown
Contributor

About the PR

Sending a message like [ would throw an exception and not allow the message to be sent. This is a PR to allow messages containing invalid markdown.

Why / Balance

Let creatures send their messages instead of not doing anything when hitting enter.

Technical details

Before sending a chat message, there's a FormattedMessage.RemoveMarkupOrThrow(originalMessage); which should strip the message of all formatting.

However, since this a OrThrow() message, this means that the method crashes when a creature sends an "invalid formatted" message, like Hello [.

We decided that the player should be able to actually send what they type so we removed that line.

Media

image

Requirements

  • I have read and agree to the Contributor License Agreement.

Changelog

🆑 Quill

  • fix: Fixed chat messages from not sending because of invalid markdown tags.

@github-actions github-actions Bot added the S: Untriaged Has not been set a status; currently not labeled. label Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S: Untriaged Has not been set a status; currently not labeled. size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants